﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="index.aspx.vb" Inherits="BookOrderingSystem.index1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gv_userCart" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="BookId" DataSourceID="ods_userCart" CellPadding="4" 
    ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="BookstoresId" HeaderText="BookstoresId" 
                SortExpression="BookstoresId" />
            <asp:BoundField DataField="BookId" HeaderText="BookId" 
                SortExpression="BookId" InsertVisible="False" ReadOnly="True" />
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:BoundField DataField="BookQuantity" HeaderText="BookQuantity" 
                SortExpression="BookQuantity" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <asp:Label ID="lb_TotalPrice" runat="server"></asp:Label>
    <br />
    <asp:Button ID="bn_Order" runat="server" Text="Order" />
    <br />
    <asp:ObjectDataSource ID="ods_userCart" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByUserId" 
        TypeName="BookOrderingSystem.BOSDataSetTableAdapters.UserCartTableAdapter">
        <SelectParameters>
            <asp:SessionParameter Name="userId" SessionField="UserId" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
